<div class="center_content">
    <div>
        <table>
            <tr>
                <td class="title_message_td not-border align_left">
                    <h2><?=__(LANG_ADMIN_ADD)?></h2>
                </td>
                <td class="pass_change_fail">
                    <?php if(!empty($admin_error['pass'])) {?>
                        <?=$admin_error['pass']?>
                    <?php } else if(!empty($admin_error['id'])){?>
                        <?=$admin_error['id']?>
                    <?php } else if(!empty($admin_error['empty'])){?>
                        <?=$admin_error['empty']?>
                    <?php }?>
                </td>
            </tr>
        </table>
    </div>
    <div><?php echo $this->Form->create('tbl_admin_member', array('onsubmit' => 'return confirm('.'"'.__(LANG_SAVE_READY).'");')); ?></div>
    <table>
        <tr>
            <td class="admin_edit_td">
                <?php if(!empty($admin_error['id'])){?>
                    <strong class="error_message"><?=__(LANG_ADMIN_ID)?></strong>
                <?php } else {?>
                    <strong><?=__(LANG_ADMIN_ID)?></strong>
                <?php }?>
            </td>
            <td class="align_left">
                <?php echo $this->Form->input('admin_id', array(
                    'label' => false,
                    'type' => 'text',
                    'value' => empty($new_admin_info['admin_id'])? '' : $new_admin_info['admin_id']
                )); ?>
            </td>
        </tr>
        <tr>
            <td>
                <?php if(!empty($admin_error['pass'])){?>
                    <strong class="error_message"><?=__(LANG_ADMIN_PASS)?></strong>
                <?php } else {?>
                    <strong><?=__(LANG_ADMIN_PASS)?></strong>
                <?php }?>
            </td>
            <td colspan="3" class="align_left">
                <?php echo $this->Form->input('admin_pass', array(
                    'label' => false,
                    'type' => 'password',
                    'value' => ''
                )); ?>
            </td>
        </tr>
        <tr>
            <td>
                <?php if(!empty($admin_error['pass'])){?>
                    <strong class="error_message"><?=__(LANG_ADMIN_PASS_CONF)?></strong>
                <?php } else {?>
                    <strong><?=__(LANG_ADMIN_PASS_CONF)?></strong>
                <?php }?>
            </td>
            <td colspan="3" class="align_left">
                <?php echo $this->Form->input('admin_pass_conf', array(
                    'label' => false,
                    'type' => 'password',
                    'value' => ''
                )); ?>
            </td>
        </tr>
        <tr>
            <td>
                <?php /*if(!empty($admin_error['empty'])){*/?>
                    <!--<strong class="error_message"><?/*=__(LANG_ADMIN_BELONG)*/?></strong>-->
                <?php /*} else {*/?>
                    <strong><?=__(LANG_ADMIN_BELONG)?></strong>
                <?php /*}*/?>
            </td>
            <td colspan="3" class="align_left">
                <?php echo $this->Form->input('admin_belong', array(
                    'label' => false,
                    'type' => 'text',
                    'value' => empty($new_admin_info['admin_belong'])? '' : $new_admin_info['admin_belong']
                ));?>
            </td>
        </tr>
        <tr>
            <td>
                <strong><?=__(LANG_ADMIN_NAME)?></strong>
            </td>
            <td colspan="3" class="align_left">
                <?php echo $this->Form->input('admin_name', array(
                    'label' => false,
                    'type' => 'text',
                    'value' => empty($new_admin_info['admin_name'])? '' : $new_admin_info['admin_name']
                )); ?>
            </td>
        </tr>
    </table>
</div>

<div class="center_bottom_content">
    <table class="actions">
        <tr>
            <td class="not-border-header button_right">
                <?php echo $this->Form->end(__(LANG_SAVE)); ?>
            </td>
            <td class="not-border-header button_left link_padding">
                <?php echo $this->Html->link(__(LANG_CANCEL), array('controller' => 'Admin', 'action' => 'admin_list'));?>
            </td>
        </tr>
    </table>
</div>